import React from 'react';
import * as Icon from '@ant-design/icons';

// 动态创建图标
export const iconToElement = (name: string) => {
  return React.createElement(Icon && (Icon as any)[name])
};
